import 'package:riverpod_annotation/riverpod_annotation.dart';

part 'loading_notifier.g.dart';

@riverpod
class LoadingNotifier extends _$LoadingNotifier {
  bool loading = false;

  @override
  bool build() {
    return loading;
  }

  void updateState({required bool loading}) {
    state = loading;
  }
}